package cn.liulingfengyu.behavioralpatterns.chainofresponsibilitypattern;

public class ConcreteHandlerA extends Handler {
    @Override
    public void handleRequest(int request) {
        if (request >= 0 && request < 10) {
            System.out.println("ConcreteHandlerA 处理请求 " + request);
        } else if (nextHandler != null) {
            nextHandler.handleRequest(request);
        }
    }
}